package com.mxt.moviedemo.dao;

import com.mxt.moviedemo.entity.Actors;
import com.mxt.moviedemo.entity.PageRequest;
import com.mxt.moviedemo.entity.Ticket;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ActorsMapper {
    List<Actors> searchActorsByKeyword(PageRequest pageRequest, String keyword);
    int getTotalActorsByKeyword(String keyword);

    Actors getActorById(int aid);

    // 根据分页参数查询类别列表
    List<Actors> getActorsByPage(PageRequest pageRequest);
    // 查询类别总数
    int getTotalActors();


    List<Actors> searchActorsByName(String aname);
    int addActors(Actors actors);
    boolean updateActors(Actors actors);
    int deleteActors(int aid);
}